package com.ad2campaign.engine.core.service;

import java.util.Set;

import com.ad2campaign.engine.db.model.Node;
import com.ad2campaign.engine.rest.RestActionResponse;

public interface GenericJobService {

	RestActionResponse startJob(String jobName, String jobParam);

	RestActionResponse stopJob(Long executionId, String jobName);

	RestActionResponse stopAllJob(String jobName);

	RestActionResponse restart(String jobName, Long executionId);

	RestActionResponse running(String jobName);

	RestActionResponse stopped(String jobName);

	RestActionResponse stopping(String jobName);

	RestActionResponse starting(String jobName);

	RestActionResponse completed(String jobName);

	RestActionResponse failed(String jobName);

	void resumeJobs(Set<Node> exclude, String jobName);

}
